SET JAVA_HOME=C:\Program Files\Java\jdk1.8.0_71
#d:\jdk1.8.0_51
set  RESIN-HOME=c:\resin-4.0.22
set classpath=%classpath%;%RESIN-HOME%\lib\jasper.jar;%RESIN-HOME%\lib\javaee-16.jar;%RESIN-HOME%\lib\resin.jar
rem 3,配置classpath %RESIN-HOME%\lib\resin.jar (如果是win7的话没必要设置)
rem  否则报异常：com.caucho.loader.SystemClassLoader
rem  否则报异常：com.caucho.loader.SystemClassLoader
rem %RESIN-HOME%\resin.exe console  -resin-home %RESIN-HOME% --debug-port 8000

SET JAVA_HOME=C:\Program Files\Java\jdk1.8.0_71
 "%JAVA_HOME%\bin\java" -Dapptype="pay" -Diioc="" -Dcfgfile="pay.ini" -Dresin.server=1 -Djava.util.logging.manager=com.caucho.log.LogManagerImpl -Djava.system.class.loader=com.caucho.loader.SystemClassLoader -Djava.endorsed.dirs="%java_home%\jre\lib\endorsed;%RESIN-HOME%\endorsed" -Djavax.management.builder.initial=com.caucho.jmx.MBeanServerBuilderImpl -Djava.awt.headless=true -Dresin.home=/%RESIN-HOME% -Xss1m -Xmx556m -Xrs -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000 com.caucho.server.resin.Resin --root-directory /%RESIN-HOME% -conf %RESIN-HOME%\conf\resin.xml   -resin-home /%RESIN-HOME% -root-directory /%RESIN-HOME% console -debug-port 8000 
 
rem ##-socketwait 52023 
rem  "C:\Program Files\java\jdk1.8.0_71\bin\javaw" -Xmx512m -XX:MaxPermSize=512m -Djava.awt.headless=true -Dresin.server=1 -Djava.util.logging.manager=com.caucho.log.LogManagerImpl -Djava.system.class.loader=com.caucho.loader.SystemClassLoader "-Djava.endorsed.dirs=C:\Program Files\java\jdk1.8.0_71\jre\lib\endorsed;c:\resin-4.0.22\endorsed" -Djavax.management.builder.initial=com.caucho.jmx.MBeanServerBuilderImpl -Djava.awt.headless=true -Dresin.home=/c:/resin-4.0.22 -Xss1m -Xrs -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000 com.caucho.server.resin.Resin --root-directory /c:/resin-4.0.22 -conf c:\resin-4.0.22\conf\resin.xml -socketwait 52023 -resin-home /c:/resin-4.0.22 -root-directory /c:/resin-4.0.22 console -debug-port 8000